HOME_DIR = File.dirname(__FILE__) + '/../'

require HOME_DIR + 'vendor/activerecord/lib/active_record.rb'
require 'yaml'

#
# This configures active record with the database parameters defined in the 
# config/database.yml
#
ActiveRecord::Base.establish_connection(
  YAML::load(File.open(HOME_DIR + 'config/database.yml'))
)
